package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.query.PageQuery;
import com.itheima.mp.domain.vo.UserVO;

import java.util.List;

public interface IUserService extends IService<User> {
    // 拓展自定义方法
    void deductBalance(Long id, Integer money);

    UserVO queryUserAndAddress(Long userId);

    List<UserVO> queryUserAndAddressByIds(List<Long> ids);
    PageDTO<UserVO> queryUsersPage(PageQuery query);

    PageDTO<UserVO> queryUserByPageTwo(PageQuery query);
}